<?php $Categorys=$this->requestAction(array('controller'=>'categories','action'=>'create_a_view')); ?>
<?php echo $this->Html->script('blog')?>
	<div id = "mainNavigation">
		<div id = "mainList">
			<div id="myBlogDiv">
				<a href = "javascript:void(0)" id="blogStrong">
					<div class="back" id="blback"></div><strong >我的博客</strong>
				</a>
				<ul id="myBlogUl">
					<li class="navLi" id="toWrite"><a href="javascript:void(0)" class="lia">发表日志</a></li>
					<li class="navLi" id="allBlog"><a href = "javascript:void(0)" class="lia"><div class="liback" id="allBlogBack"></div>所有日志</a></li>
					<li class="navLi"><a href = "javascript:void(0)" class="lia mytag">显示所有</a></li>
					<?php foreach($Categorys['BlogsCategory'] as $BlogCategories):?>
					<li class="navLi"><a href = "javascript:void(0)" class="lia mytag" value="<?php echo $BlogCategories['BlogsCategory']['id'] ?>">
						<?php echo $BlogCategories['BlogsCategory']['name'].' ('.$BlogCategories['BlogsCategory']['articles'].')'?></a>
					</li>
					<?php endforeach;?>
					<li class="navLi" id="draft"><a href = "javascript:void(0)" class="lia">草稿箱</a></li>
					<li class="navLi" id="store"><a href = "javascript:void(0)" class="lia">收藏夹</a></li>
					<li class="navLi" id="share"><a href = "javascript:void(0)" class="lia">我的分享</a></li>
				</ul>
			</div>
			<div id="myNoticeDiv">
				<a href = "javascript:void(0)" id="noticeStrong">
					<div class="back" id="noback"></div><strong >我的订阅</strong>
				</a>
				<ul id="myNoticeUl">
					<li class="navLi" id="toNotice"><a href = "javascript:void(0)" class="lia">添加订阅</a></li>
					<li class="navLi" id="myNoticeMan"><a href = "javascript:void(0)" class="lia"><div class="liback" id="mynoticeBack"></div>我关注的人</a></li>
					<?php foreach($Categorys['Follow'] as $follows):?>
						<li class = "navLi"><a href = "javascript:void(0)" class="lia noticePerson" value="<?php echo $follows['Follow']['follow_id'] ?>"><?php echo $follows['Userinfo']['nickname']?></a></li>
					<?php endforeach;?>
					<li class="navLi" id="myNoticeBlog"><a href = "javascript:void(0)" class="lia"><div class="liback"></div>我关注的标签</a></li>
					<div class = "noticePost">
					<?php foreach($Categorys['Tag'] as $tag):?>
							<li class="navLi"><a href = "javascript:void(0)" class="lia noticeA"><?php echo $tag['Tag']['tag']?></a></li>
					<?php endforeach;?>
					</div>
				</ul>
			</div>
		</div>
	</div>
<script>
collection();
</script>